package com.xjrh.travel.data.apply;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 主程序
 *
 * @author snps
 * @create 2025-10-30 22:46
 * @describe
 **/
@SpringBootApplication
@MapperScan({
        "com.xjrh.travel.data.apply.dao"
})
@EnableDiscoveryClient
@EnableFeignClients
@EnableAsync
@Slf4j
public class DataApplyApplication {

    static final String APPLIATION_NAME = "XJRH-Travel-Data-Apply";

    public static void main(String[] args) {
        try {
            SpringApplication.run(DataApplyApplication.class, args);

            log.warn("****************************************");
            log.warn("Service: {} start success!", APPLIATION_NAME);
            log.warn("****************************************");
        } catch (Exception e) {
            log.error("Service-{} start fail!!!", APPLIATION_NAME);
            e.printStackTrace();
        }
    }


}